package com.niiwoo.civet.system.service.dubbo;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.system.dto.common.MessageTemplateDto;
import com.niiwoo.civet.system.service.SysMessageTemplate;
import com.niiwoo.civet.system.service.local.SysMessageLocalService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by dell on 2017/12/11.
 * Description：civet-parent
 */
@Service(version = "1.0.0")
public class SysMessageTemplateImpl implements SysMessageTemplate {

    @Autowired
    private SysMessageLocalService sysMessageLocalService;


    /**
     * 根据 templateCode 查询模板
     * @param templateCode
     * @return
     */
    public MessageTemplateDto selectByTemplateCode(String templateCode){
        return sysMessageLocalService.selectByTemplateCode(templateCode);
    }

}
